<template>
  <!--关于勤博-->
  <div>
  <div class="content padding250">
    <headers></headers>
    <!--<carousel></carousel>-->
    <p class="banner padding88" style="height: 260px;"><img :src="sliderImg" alt="" height="200px" width="100%"></p>
    <div class="divider ">
      <div class="auto">
        <router-link to="/">首页</router-link><span>></span>联系我们
      </div>
    </div>
    <div class="auto">
      <div class="container clearfix font14" v-html=html>
      </div>
    </div>
    <Spin fix v-show="isSpinShow" >
      <div class="loader">
        <Icon type="ios-loading" size=26 class="demo-spin-icon-load"></Icon>
        <div class="font14">加载中...</div>
      </div>
    </Spin>
    <footers></footers>
  </div>
  </div>
</template>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less" rel="stylesheet/less">
  /* 旋转效果 */
  .demo-spin-icon-load{
    animation: ani-demo-spin 1s linear infinite;
  }
  @keyframes ani-demo-spin {
    from { transform: rotate(0deg);}
    50% { transform: rotate(180deg);}
    to { transform: rotate(360deg);}
  }
  /* 假如内容过长，一屏放不下，滚动条下拉覆盖不全 */
  .ivu-spin-fix {
    position: fixed;
  }
  .divider{
    height: 53px;
    background-color: #fff;
    font-size: 14px;
    color: #957960;
    line-height: 53px;
    text-align: left;
    margin-bottom: 30px;
    box-shadow: 5px 1px 10px #ccc;
    a{
      color: #957960;
      &:hover{
        color: #9C7649;
        font-weight: 700;
      }
    }
    span{
      margin: 0 10px;
    }
  }

  .content{
    //background-color: #f5f5f5;
    text-align: left;
    .title{
      font-size: 20px;
      color: #000;
      margin: 20px 0 25px 0;
      padding: 15px 20px ;
      background-color: #fff;
    }
    .container{
      background-color: #fff;
      padding: 0px 60px;
      color: #000;
      line-height: 30px;
      /*font-size: 16px;*/
      li:nth-of-type(1){
        font-size: 25px;
        margin-bottom: 10px;
      }
      li{
        line-height: 33px;
      }
      p{
        margin-top: 30px;
      }
    }

  }
</style>
<script type="text/ecmascript-6">
  import headers from '../template/header'
  import footers from '../template/footer'
  import carousel from '../template/carousel'
  import {getHtmlWeb,sliderPC} from "../../http";
  import imgPathFilter from '@/myFilters'
  export default {
    name: 'linkus',
    props: {},
    data() {
      return {
        html: '',
        isSpinShow:false,
        sliderImg:''
      };
    },
    methods: {},
    created() {
      if(this.isSpinShow === false) {
        this.isSpinShow = true;
        //获取封面图
        sliderPC({sliderType:'9'}).then(res =>{
          this.sliderImg = res.data.slider.sliderImg;
        }).catch()
        //获取页面信息
        getHtmlWeb({type: 'linkus'}).then(res => {
          this.isSpinShow = false;
          this.html = res.data.html.htmlContent;
        }).catch()
      }
    },
    components: {
      headers,
      footers,
      carousel
    }
  }
</script>
